<div class="lofi-box " ng-show="$parent.showRentAdd">
    <div class="base-background"></div>
    <div class="lofi-content-box lofi-countent-min-hwy">
            <div class="base-window-content-box ">
                <div class="base-window-title-box">
                    <h6 class="base-window-head base-window-title">创建新合约</h6>
                </div>
                <div class="lofi-text-content">
                    <div class="rent-company-info">
                        <h6 class="rent-company-title ">缴租企业信息</h6>
                        <div class="rent-company-content lofi-content-first">
                            <p class="rent-company-head">选择企业：</p><select id='companys' class="form-control rent-comapny-input pro-write-base-backimg" ng-class="rentProtocol.manager?'':'select-option'" ng-model="rentProtocol.manager" ng-change="changeCompany()" ng-options="company.companyName for company in companyList">
                            <option ng-hide="lockModel.manager" value="">请选择</option>
                            </select>
                        </div>
                        <div class="rent-company-content">
                            <p class="rent-company-head">房间号：</p><input ng-model="rentProtocol.roomNum" type="text" class="form-control rent-comapny-input">
                        </div>
                    </div>
                    <div class="rent-company-info-base">
                        <h6 class="rent-company-title">缴租企业信息</h6>
                        <div class="lofi-content-text rent-company-info-content lofi-content-first" ng-init="showStartTime=false;showEndTime=false">
                        <p class="rent-company-head">租期：</p><div class="datepicker-box dropdown form-control lofi-content-time rent-content-time">
                            <a ng-click="showStartTime=!showStartTime;showEndTime=false;" class="dropdown-toggle datepicker-select" role="button" data-toggle="dropdown" data-target="#"
                               >
                                <p class="lofi-time-text base-line-center" ng-class="rentProtocol.beginTime ? 'selected-start-time':''">{{rentProtocol.beginTime ? rentProtocol.getBeginTimeString() : '开始时间'}}</p>
                            </a>
                            <ul ng-class="{true: 'lofi-time-show'}[showStartTime]" class="dropdown-menu" role="menu" aria-labelledby="startTimeLabel">
                                <datetimepicker data-ng-model="data.data"
                                                data-on-set-time="onTimeSetStart(newDate, oldDate)"
                                                data-before-render="beginDateBeforeRender($view, $dates)"
                                                data-datetimepicker-config="{'startView':'year', 'minView': 'day'}"></datetimepicker>
                            </ul>
                        </div><span class="lofi-time-line"></span><div class="datepicker-box dropdown form-control lofi-content-time rent-content-time">
                            <a ng-click="showStartTime=false;showEndTime=!showEndTime;"  class="dropdown-toggle datepicker-select" role="button" data-toggle="dropdown" data-target="#"
                               href="">
                                <p class="lofi-time-text base-line-center" ng-class="rentProtocol.endTime ? 'selected-start-time':''">{{rentProtocol.endTime ? rentProtocol.getEndTimeString() : '截止时间'}}</p>
                            </a>
                            <ul ng-class="{true: 'lofi-time-show'}[showEndTime]" class="dropdown-menu" role="menu" aria-labelledby="endTimeLabel">
                                <datetimepicker data-ng-model="data.data" data-before-render="endDateBeforeRender($view, $dates)"
                                                data-on-set-time="onTimeSetEnd(newDate, oldDate)"
                                                data-datetimepicker-config="{'startView':'year', 'minView': 'day'}"></datetimepicker>
                            </ul>
                        </div>
                        </div>
                        <div class="rent-company-info-content">
                            <p class="rent-company-head">缴租周期：</p><input ng-model="rentProtocol.payCycle" type="number"  ng-change="checkCountPayCycle(rentProtocol.payCycle)" class="form-control rent-comapny-input pro-phone-content-text-moz">
                        </div>
                        <div class="rent-company-info-content">
                            <p class="rent-company-head">月租金：</p><input ng-model="rentProtocol.monthlyRent" type="number" ng-change="checkCountMonthlyRent(rentProtocol.monthlyRent)" class="form-control rent-comapny-input pro-phone-content-text-moz">
                        </div>
                    </div>
                </div>

                <div class="pro-write-page-box pro-phone-button-box">
                    <input ng-click="submitProtocol(rentProtocol)" type="button" class="pro-phone-button" value="创建缴租合同">
                </div>
            </div>

            <a class="base-close-window" ng-click="$parent.showRentAdd=false">
                <!--<span class="base-close-window-content" ng-style="EleStyle.lineHeight('base-close-window', 1)">✕</span>-->
                <span class="base-close-window-content">ｘ</span>
            </a>

        </div>
</div>